package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 管理设备
 * </p>
 *
 * @author wumu
 * @since 2019-12-14
 */
public class DevDevice extends Model<DevDevice> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备
     */
    private String id;

    private String name;

    /**
     * 周期
     */
    private Integer period;

    /**
     * Lorawan的响应时间或者其他的心跳时间
     */
    private Integer heartPeriod;

    private Long createTime;

    private Long updateTime;

    /**
     * 波特率
     */
    private Integer baud;

    /**
     * 设备的类型
     */
    private String type;

    private String remark;

    private String location;

    /**
     * 海拔
     */
    private Float altitude;

    private Integer online;

    private Integer status;

    private String profileId;

    private String cardNumber;

    private String tenantId;

    private Integer areaId;

    private Integer landId;

    private String devSecret;

    /**
     * 设备是否显示采集和控制
     */
    private Integer showType;

    private Integer sequence;

    private String iccid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Integer getHeartPeriod() {
        return heartPeriod;
    }

    public void setHeartPeriod(Integer heartPeriod) {
        this.heartPeriod = heartPeriod;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBaud() {
        return baud;
    }

    public void setBaud(Integer baud) {
        this.baud = baud;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Float getAltitude() {
        return altitude;
    }

    public void setAltitude(Float altitude) {
        this.altitude = altitude;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getProfileId() {
        return profileId;
    }

    public void setProfileId(String profileId) {
        this.profileId = profileId;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getLandId() {
        return landId;
    }

    public void setLandId(Integer landId) {
        this.landId = landId;
    }

    public String getDevSecret() {
        return devSecret;
    }

    public void setDevSecret(String devSecret) {
        this.devSecret = devSecret;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevDevice{" +
        "id=" + id +
        ", name=" + name +
        ", period=" + period +
        ", heartPeriod=" + heartPeriod +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", baud=" + baud +
        ", type=" + type +
        ", remark=" + remark +
        ", location=" + location +
        ", altitude=" + altitude +
        ", online=" + online +
        ", status=" + status +
        ", profileId=" + profileId +
        ", cardNumber=" + cardNumber +
        ", tenantId=" + tenantId +
        ", areaId=" + areaId +
        ", landId=" + landId +
        ", devSecret=" + devSecret +
        ", showType=" + showType +
        ", sequence=" + sequence +
        "}";
    }
}
